home *** CD-ROM | disk | FTP | other *** search
-
- /*
- *
- * MOS113 : パルス数/画素比の設定
- *
- */
-
- #include <stdio.h>
- #include <dos.h>
-
- unsigned int MOS_step(unsigned char horizon,unsigned char vertical) {
- union REGS inregs, outregs;
- struct SREGS segregs;
-
- segread(&segregs);
- inregs.h.dh=horizon;
- inregs.h.dl=vertical;
- inregs.x.ax=0x0C00;
- int86x(0x99,&inregs,&outregs,&segregs);
- return (unsigned int)outregs.h.ah;
- }